from django.conf.urls import url
from goods import views
from goods.views import GoodsSort, GoodsDetail

app_name = 'goods'
urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^goods_sort/(?P<goods_type>.*)/(?P<page_num>\d+)$', GoodsSort.as_view(), name='goods_sort'),
    url(r'^goods_detail/(?P<goods_id>\d+)$', GoodsDetail.as_view(), name='goods_detail'),

]

